package com.campus.commons.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author Rin
 * @since 2020-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Role对象", description="角色")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "角色名称")
    @TableField("roleName")
    private String rolename;

    @ApiModelProperty(value = "角色描述")
    @TableField("roleDesc")
    private String roledesc;

    @ApiModelProperty(value = "角色特征 -1：炒鸡管理员 1：普通管理")
    @TableField("roleNature")
    private Integer rolenature;

    @ApiModelProperty(value = "权限等级1max")
    @TableField("roleLevel")
    private Integer rolelevel;


}
